/*
 * @Description: 
 * @Date: 2024-05-31 11:22:06
 * @LastEditTime: 2024-06-04 15:23:04
 */
import request from '@/config/axios'

export interface InterviewAppointmentVO {
                    id: number
                    requestTime: string
                    name: string
                    content: string
                    phone: string
                    videoUrl: string
                    meetingNumber: string
                    status: boolean
                    acceptUserName: string
                    acceptTime: Date
                    acceptUserId: number
                    acceptContent: string
                    auditingContent: string
                    auditingTime: Date
                    businessType?:string
}

// 查询接访预约信息列表
export const getInterviewAppointmentPage = async (params) => {
  return await request.get({ url: '/pro/interview-appointment/page', params })
}

// 查询接访预约信息详情
export const getInterviewAppointment = async (id: number) => {
  return await request.get({ url: '/pro/interview-appointment/get?id=' + id })
}

// 新增接访预约信息
export const createInterviewAppointment = async (data: InterviewAppointmentVO) => {
  return await request.post({ url: '/pro/interview-appointment/create', data })
}

// 修改接访预约信息
export const updateInterviewAppointment = async (data) => {
  return await request.put({ url: '/pro/interview-appointment/update', data })
}

// 删除接访预约信息
export const deleteInterviewAppointment = async (id: number) => {
  return await request.delete({ url: '/pro/interview-appointment/delete?id=' + id })
}

// 导出接访预约信息 Excel
export const exportInterviewAppointmentApi = async (params) => {
  return await request.download({ url: '/pro/interview-appointment/export-excel', params })
}
